<?php
/**
 * Created by PhpStorm.
 * User: peter
 * Date: 2018/6/4
 * Time: 下午4:33
 */

namespace app\model;


class GoodsAttributeAttach extends Base
{
    protected $pk = 'id';
    protected $json = ['attach'];
    public $table = 'goods_attribute_attach';

    /**
     * @purpose 管理商品表
     * @return \think\model\relation\HasOne
     */
    public function goods () {
        return $this->hasOne('goods', 'id', 'goods_id');
    }
}